package org.sklse.learningassistant.controller.resource.api;

import org.sklse.learningassistant.bean.resource.Knowledge;
import org.sklse.learningassistant.service.resource.KnowledgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/knowledgePoint")
public class KnowledgePointApiController {

    @Autowired
    private KnowledgeService knowledgeService = null;


    @RequestMapping("findById")
    public Knowledge findById(@RequestParam("id") Integer id){
        return knowledgeService.findById(id);
    }


}